﻿<!DOCTYPE html>
<html>
<head>
	<style type="text/css">
.icon {
   width: 1em; height: 1em;
   vertical-align: -0.15em;
   fill: currentColor;
   overflow: hidden;
}
h1 span{ display: block; font-size: 120px; margin: 10px; }
</style>
</head>
<body style="margin: 0;padding:0; background: #eee;">
	<div >
		<div id="errorcode" style="text-align: center;">
			<h1><span style="color: green"><svg class="icon" aria-hidden="true">
  <use xlink:href="#icon-biaoqing"></use>
</svg></span> 题目导入成功</h1>
			<input type="button" name="" value="确定返回" onclick="end()">
		</div>
	</div>
</body>
<script src="/framework/angular-wang-editor/dist/js/lib/jquery-1.10.2.min.js" type="text/javascript"></script> 
<script src="/images/icon/iconfont.js" type="text/javascript"></script>
<script type="text/javascript">
//location.href="http://www.baidu.com";

    $(function () {      
        var val = getQueryString("errorcode");       
        window.parent.document.getElementById('itemobj').value = getQueryString("datas");
        if (val != "0") {
            //	$("#errorcode").find("h1").html("<span style=\"color: red\"><svg class=\"icon\" aria-hidden=\"true\"><use xlink:href=\"#icon-warn\"></use></svg></span> 题目导入失败");
        }
    })

function end() {

console.log(window.parent.document.getElementById('itemobj').value);
window.parent.document.getElementById('close').click();
}

function getQueryString(name) {
    debugger;
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
//if (r != null) {
//    console.log(decodeURI(r[2]));
//    console.log(decodeURIComponent(r[2]));
//    console.log(r[2]);
//}
if (r != null) return decodeURIComponent(r[2]); return null; 
} 
 // console.log();
</script>
</html>